<div class="tms-main-page-function">
    <div class="main-content">
        <div class="page-function">
            <ul class="wms-wbm-fun-left">
                <button class="layui-btn" ng-click="addRepairBillClick()" >新增</button>
                <button class="layui-btn" ng-click="submitRepairBillClick()">提交维修</button>
                <button class="layui-btn" ng-click="repairCheckClick()">维修后检验</button>
                <button class="layui-btn">打印</button>
            </ul>
            <div class="wms-wbm-fun-right">
                <button class="layui-btn" ng-click="moreClick()" ng-bind="moreText"></button>
                <button class="layui-btn" ng-click="refreshClick()"><i class="layui-icon">ဂ</i></button>
            </div>
        </div>

        <div class="otherForm" style="width: 96%" ng-show="otherForm">
            <ul>
                <li>
                    <div class="otherFormItem">
                        <div>维修类型</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.repairType">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="repairType in (dropDownList.repairType | filter: $select.search)">
                                    <span ng-bind="repairType.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>维修状态</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.repairStatus">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="repairStatus in (dropDownList.repairStatus | filter: $select.search)">
                                    <span ng-bind="repairStatus.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>底盘号</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.rpVin"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>运输单号</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.rpBillNo"/>
                        </div>
                    </div>
                </li>

                <li>
                    <div class="otherFormItem">
                        <div>货主</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.rpStorerName"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>目的地</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.rpDestination"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>检验结果</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.inspectionResults">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="inspectionResults in (dropDownList.inspectionResults | filter: $select.search)">
                                    <span ng-bind="inspectionResults.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>维修结果</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.repairResult">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="repairResult in (dropDownList.repairResult | filter: $select.search)">
                                    <span ng-bind="repairResult.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                </li>

                <li>
                    <div class="otherFormItem">
                        <div>创建日期</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.gmtCreate" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>至</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.a1" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>维修完成时间</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.rpStartDate" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>至</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.rpEndDate" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                </li>
                <li>
                    <div class="otherFormItem otherFormItemButton">
                        <button class="layui-btn" ng-click="searchClick()">查询</button>
                        <button class="layui-btn" ng-click="resetClick()">重置</button>
                    </div>
                </li>
            </ul>
        </div>

        <div class="layui-form scrollTable">
            <table class="layui-table wms_wbm_main_table serial minScreen repairTable" style="width : 1920px;">
                <tbody>
                    <tr>
                        <th>
                            <input type="checkbox" name="allChoose" lay-skin="primary" lay-filter="allChoose">
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                <i class="layui-icon"></i>
                            </div>
                        </th>
                        <th>序号</th>
                        <th>维修单号</th>
                        <th>维修类型</th>
                        <th>维修状态</th>
                        <th>质损单号</th>
                        <th>维修出库单号</th>
                        <th>底盘号</th>
                        <th>运输单号</th>
                        <th>货主</th>
                        <th>目的地</th>
                        <th>货物说明</th>
                        <th>检验结果</th>
                        <th>车辆问题描述</th>
                        <th>责任方</th>
                        <th>维护方</th>
                        <th>维修结果</th>
                        <th>维修完成时间</th>
                        <th>创建人</th>
                        <th>创建时间</th>
                        <th>备注</th>
                    </tr>
                    <tr ng-repeat="repairBill in repairBillList">
                        <td>
                            <input type="checkbox" name="ckValue" ng-value="$index" lay-skin="primary" />
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                <i class="layui-icon"></i>
                            </div>
                        </td>
                        <td ng-bind="$index + 1"></td>
                        <td ng-bind="repairBill.rpRepairNo"></td>
                        <td ng-bind="repairBill.rpType | repairTypeFilter"></td>
                        <td ng-bind="repairBill.rpStatus | repairStatusFilter"></td>
                        <td ng-bind="repairBill.rpZsNo"></td>
                        <td ng-bind="repairBill.rpOutBill"></td>
                        <td ng-bind="repairBill.rpVin"></td>
                        <td ng-bind="repairBill.rpBillNo"></td>
                        <td ng-bind="repairBill.rpStorerName"></td>
                        <td ng-bind="repairBill.rpDestination"></td>
                        <td ng-bind="repairBill.rpGoodsExplain"></td>
                        <td ng-bind="repairBill.rpCheckResult | inspectionResultsFilter"></td>
                        <td ng-bind="repairBill.rpProblemDescribe"></td>
                        <td ng-bind="repairBill.rpResponsibility"></td>
                        <td ng-bind="repairBill.rpRepairPerson"></td>
                        <td ng-bind="repairBill.rpRepairResult | repairResultFilter"></td>
                        <td ng-bind="repairBill.rpEndDate"></td>
                        <td ng-bind="repairBill.createPerson"></td>
                        <td ng-bind="repairBill.gmtCreate"></td>
                        <td ng-bind="repairBill.remark"></td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="admin-table-page" style="text-align: center;">
            <div id="pages" class="page">
            </div>
        </div>
    </div>
</div>